<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
    <title>定义数组并输出</title>
    <script src="JS/react.js"></script>
    <script src="JS/react-dom.js"></script>
	<script src="JS/browser.min.js"></script>
  </head>
  <body>
    <div id="example"></div>   
    <script type="text/babel">
	 var arr = [
  		<h1>Hello React</h1>,
  		<h2>Hello JavaScript</h2>
	];
      ReactDOM.render(
		<div>{arr}</div>,
      	document.getElementById('example')
      );
	</script>
  </body>
</html>
